﻿
Imports System
Imports System.Drawing
Imports System.Reflection
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.IO

Imports DotNetNuke.Common.Globals
Imports DotNetNuke.Common.Utilities
Imports DotNetNuke.Services.Localization

Namespace dnnWerk.Providers.RadEditorProvider

    Public Class RenderTemplateUrl
        Inherits System.Web.UI.WebControls.Literal

        Protected Overrides Sub OnPreRender(ByVal e As System.EventArgs)
            MyBase.OnPreRender(e)
            Text = "<script type=""text/javascript"">var __dnnTemplateBaseUrl=""" + Page.ResolveUrl("~/Desktopmodules/dnnWerk.RadEditorProvider/Dialogs/RenderTemplate.aspx") + """;</script>"
        End Sub

    End Class

End Namespace

